package cn.topcodes.tcsf.app.domain.form;

import cn.topcodes.tcsf.admin.commons.domain.Idable;
import lombok.Data;
import org.hibernate.validator.constraints.Length;

import javax.validation.constraints.NotNull;

/**
 * HelpArticle表单
 *
 * @author Yvan
 */
@Data
public class HelpArticleForm implements Idable {

    private Long id;

    @NotNull(message = "The title cannot be blank")
    @Length(min = 0, max = 200, message = "Title length is 0 ~ 200 characters")
    private String title;

    @NotNull(message = "This content cannot be blank")
    @Length(min = 0, max = 2000, message = "Content length is 0 ~ 10000 characters")
    private String content;

    @NotNull(message = "Classification cannot be null")
    private Long catalogId;
}